package com.vegetable.modules.entity.baseData;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 商品代办包装费用标准
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ProductCostClause对象", description="商品代办包装费用标准")
public class ProductCostClause extends BaseEntity {

    @ApiModelProperty(value = "商品id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long producerId;

    @ApiModelProperty(value = "代办包装材料id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long costClauseId;

    @ApiModelProperty(value = "代办包装材料名称")
    private String costClauseName;

    @ApiModelProperty(value = "单价")
    private BigDecimal defaultPrice;

    @ApiModelProperty(value = "是否统一更新（默认0，是：1）")
    @TableField(exist = false)
    private Integer isUnifyUpdate;

    @ApiModelProperty(value = "模式：0待办料，1公司料，2班组料")
    private Integer mode;

}
